package com.icloud.article.boot.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 帖子可见用户（帖子设置了仅好友可见时存在数据）
 * </p>
 *
 * @author raymond
 * @since 0000-00-00
 */
@Getter
@Setter
@TableName("article_visible_customer")
@ApiModel(value = "ArticleVisibleCustomer对象", description = "帖子对用户的可见性(暂时只有不让他看的数据)")
public class ArticleVisibleCustomer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("作者id")
    @TableField("author_id")
    private Long authorId;

    @ApiModelProperty("帖子id")
    @TableField("article_id")
    private Long articleId;

    @ApiModelProperty("可见性客户id")
    @TableField("visible_id")
    private Long visibleId;

    @ApiModelProperty("是否可见, 可见-true,不可见-false")
    @TableField("is_visible")
    private String isVisible;

    @ApiModelProperty("是否删除，0:正常，1:删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}
